

<div class="artice"> 
     <?php       
        $cate = new BachkimCategory();
        //include_partial('artice/list', array('artice' => $cate->getWithArtice_param($sf_user->getAttribute('parent_id'))   ))
        include_partial('artice/onelist', array('artice' => $cate->getOneArtice_param($sf_user->getAttribute('parent_id')) ))
    ?>
                    

    <?php include_partial('artice/list', array('artice' => $pager->getResults())) ?>
    
    <div class="clr"></div> 
     
    <?php if ($pager->haveToPaginate()): ?>
      <div class="pagination">
        <a href="<?php //echo url_for('category', $category) ?>?page=1">
          <img src="/images/first.png" alt="First page" />
        </a>
     
        <a href="<?php //echo url_for('category', $category) ?>?page=<?php echo $pager->getPreviousPage() ?>">
          <img src="/images/previous.png" alt="Previous page" title="Previous page" />
        </a>
     
        <?php foreach ($pager->getLinks() as $page): ?>
          <?php if ($page == $pager->getPage()): ?>
            <?php echo $page ?>
          <?php else: ?>
            <a href="<?php //echo url_for('category', $category) ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
          <?php endif; ?>
        <?php endforeach; ?>
     
        <a href="<?php //echo url_for('category', $category) ?>?page=<?php echo $pager->getNextPage() ?>">
          <img src="/images/next.png" alt="Next page" title="Next page" />
        </a>
     
        <a href="<?php //echo url_for('category', $category) ?>?page=<?php echo $pager->getLastPage() ?>">
          <img src="/images/last.png" alt="Last page" title="Last page" />
        </a>
      </div>
    <?php endif; ?>
 

    <!-- thong ke
    <div class="pagination_desc">
      <strong><?php //echo $pager->getNbResults() ?></strong> artices in this category
     
      <?php // if ($pager->haveToPaginate()): ?>
        - page <strong><?php //echo $pager->getPage() ?>/<?php //echo $pager->getLastPage() ?></strong>
      <?php //endif; ?>
    
    <hr />
    
    -->
    
</div>